﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Eg.Core
{
    public class Orders
    {
        public virtual int OrderId { set; get; }
        public virtual decimal Price { set; get; }
        public virtual OrderState State { set; get; }
        public virtual DateTime CreateTime { set; get; }

        public virtual Customer Customer { set; get; }
        public virtual IList<Product> Products { set; get; }
    }

    public enum OrderState
    {
        Created,Paid,Consignment,Complete
    }
}
